package com.xiaowen.wxpaytool;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration//配置类
@EnableConfigurationProperties(WxPayProperties.class)
public class WxPayToolAutoConfiguration {
    @Bean
    WxpayV3Tool wxpayV3Tool(){
        return new WxpayV3Tool();
    }
    @Bean
    RequestBuilder requestBuilder(){
        return new RequestBuilder();
    }
    @Bean TokenUtil tokenUtil(){
        return  new TokenUtil();
    }

}
